/*
 * Copyright 2009 Google Inc.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

package com.google.gwt.gdata.client.acl;

/**
 * Extends the base Link class with ACL extensions.
 */
public class Link extends com.google.gwt.gdata.client.Link {

  /**
   * Link that provides the URI of the feed for the access control list for the
   * entry.
   */
  public static final String REL_ACCESS_CONTROL_LIST =
      getConstant("REL_ACCESS_CONTROL_LIST");

  /**
   * Link that provides the URI of the entry that is controlled by the access
   * control list feed.
   */
  public static final String REL_CONTROLLED_OBJECT =
      getConstant("REL_CONTROLLED_OBJECT");

  /**
   * Constructs an ACL Link class.
   * @return A Link object.
   */
  public static native Link newInstance() /*-{
    return new $wnd.google.gdata.acl.Link();
  }-*/;

  private static native String getConstant(String name) /*-{
    return $wnd.google.gdata.acl.Link[name];
  }-*/;

  protected Link() { }

}